package com.jic.interaction.common.constant.enums;

public enum CmsPageStatusEnums {
	DRAFT_STATUS(0,"草稿"),
	PUBLISHED_STATUS(1,"已发布"),
	TAKEOFF_STATUS(2,"下架"),
	;

	private Integer name;
	private String description;
	public Integer getName() {
		return name;
	}
	public void setName(Integer name) {
		this.name = name;
	}
	public String getDesc() {
		return description;
	}
	public void setDesc(String description) {
		this.description = description;
	}

	private CmsPageStatusEnums(Integer name, String description) {
		this.name = name;
		this.description = description;
	}

	public static CmsPageStatusEnums getByName(Integer name){
		CmsPageStatusEnums[] values = CmsPageStatusEnums.values();
		for(CmsPageStatusEnums value : values){
			if(value.getName().equals(name)){
				return value;
			}
		}
		return null;
	}
	
}
